import { ElMessage, ElNotification, ElMessageBox, ElLoading } from 'element-plus'
const messagebox = {
  $message: ElMessage,
  $notify: ElNotification,
  $msgbox: ElMessageBox,
  $messageBox: ElMessageBox,
  $alert: ElMessageBox.alert,
  $confirm: ElMessageBox.confirm,
  $prompt: ElMessageBox.prompt,
  $loading: ElLoading
}
export default {
  install(app) {
    Object.keys(messagebox).forEach((key) => app.provide(key, messagebox[key]))
    window['_this'] = messagebox;
  },
}
